package cz.proks.simplecalendarmanager.shared.model;

public class User extends DomainObject {
	private static final long serialVersionUID = -2858861949636109050L;
	
	private String id;
	private String nickName; 
	private String email;
	
	public User() {
		this.id = "";
		this.nickName = "";
		this.email = "";
	}
	
	public User(String id, String nickName, String email) {
		super();
		this.id = id;
		this.nickName = nickName;
		this.email = email;
	}

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	public void set(User user) {
		setId(user.getId());
		setNickName(user.getNickName());
		setEmail(user.getEmail());
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", nickName=" + nickName + ", email=" + email
				+ "]";
	}	
}
